#!/usr/bin/python
# -*- coding: utf-8 -*-

__all__ = [u'divide_integers']

from pylot.core import check_type, error

def divide_integers (a, b, tr_=tr_):
  check_type(u'a', a, int)
  check_type(u'b', b, int)
  if b == 0 :
    raise ValueError, error(tr_(u'b: must be different from 0'))
  return float(a) / b

if __name__ == '__main__':
  import doctest
  doctest.testmod()
